package com.formula.datastructure.question.tree;

import com.formula.datastructure.standard.tree.binary.HuffmanNode;
import com.formula.datastructure.standard.tree.binary.HuffmanTree;
import com.formula.datastructure.util.DataUtil;

//Huffman tree
public class Quest10 {
    public static void main(String[] args) {
        Integer[] array = DataUtil.genUniqueArray(10, 200);
        DataUtil.printArray(array);
        HuffmanTree tree = new HuffmanTree(array);
        HuffmanNode node = tree.buildTree();
        node.inOrder();
    }
}
